package com.jiangore.ws.impl;

import com.jiangore.ws.IHelloWebService;
import org.springframework.stereotype.Component;

import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 * @Todo
 * @Author jiangtao
 * @CreateBy 2020-03-06 8:32 PM
 * @UpdateBy jiangtao
 * @Version v1.0
 */
@Component
@WebService(serviceName = "hello",
        targetNamespace = "http://ws.jiangore.com/",
        endpointInterface = "com.jiangore.ws.IHelloWebService")
public class HelloWebServiceImpl implements IHelloWebService {

    /**
     * WebMethod 修改方法名 helloWebServices 为 getMsg
     * @param msg
     * @return
     */
    @Override
    @WebMethod
    public String helloWebServices(String msg) {
        return "Hello," + msg;
    }
}
